# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=tree-sitter-cpp
pkgver=0.23.1
pkgrel=0
pkgdesc="C++ grammar for tree-sitter"
url="https://github.com/tree-sitter/tree-sitter-cpp"
arch="all"
license="MIT"
makedepends="tree-sitter-dev"
install_if="tree-sitter-grammars"
source="https://github.com/tree-sitter/tree-sitter-cpp/archive/v$pkgver/tree-sitter-cpp-v$pkgver.tar.gz"
options="!check"  # no tests for shared lib

build() {
	CFLAGS="$CFLAGS -std=c11" abuild-tree-sitter build
}

package() {
	DESTDIR="$pkgdir" abuild-tree-sitter install
}

sha512sums="
7ddada4845ae714d5c495c9221afd9284612e6ada1002ff04fe541a6865737f993ae99f72800cf2e7a0f037dc3002b006d8a1c0d909e1ac8f05ece1082388b29  tree-sitter-cpp-v0.23.1.tar.gz
"
